import pytest

from selenium import webdriver
from selenium.webdriver.common.by import By

import time

from selenium.webdriver.support.ui import WebDriverWait    #显性时间
from selenium.webdriver.support import expected_conditions as EC  #显性时间

import allure

from zhengkexin.locators3.elements_locators import *
from zhengkexin.page4.page_test import Ber


@pytest.fixture(scope='function',autouse=True,name='a')

def setup():
    driver = webdriver.Chrome()
    driver.get("http://jxc.b2zg.cn/#/login")
    driver.implicitly_wait(10)
    driver.maximize_window()
    d = Ber(driver)

    d.login1_()
    d.check_login_()

    yield driver
    driver.quit()







































